@extends('akl.Admin.Base-index')
@section('content')
<script>
	$('#left-bar .nav>li:nth-child(3)>.menu').addClass('on');
</script>
<div class="main-menu fadeInLeft">
	<div class="title">
		<i class="fa fa-file-text-o"></i> 编辑品牌
	</div>
	<ul class="act-list">
		<li>
			<a href="/Admin/Brand/index"><i class="fa fa-plus-square-o"></i>品牌列表</a>
		</li>
	</ul>
</div>
<div class="main-wrap fadeInRight">
	@if (count($errors) > 0)
		<div style="color: red">
			<ul>
				@if( is_object($errors) )
					@foreach ($errors->all() as $error)
						<li>{{ $error }}</li>
					@endforeach
				@else
					{{ $errors }}
				@endif
			</ul>
		</div>
	@endif
	<form class="formPanel" action="" method="post" enctype="multipart/form-data">
		{{csrf_field()}}
		<div class="form-group">
			<label>品牌名：</label><input type="text" name="name" value={{$brand->name}} />
		</div>
		<div class="form-group">
			<label>品牌描述：</label><input type="text" name="introduce" value={{$brand->introduce}} />
		</div>
		<div class="form-group">
			<label>品牌logo：</label><input type='file' name='file[]'>
			<img src={{ $brand->logo }} />
		</div>
		<input class="save-btn" type="submit" name="send" value="更新品牌" />
	</form>
</div>

@endsection